package com.ys.entity.sys;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_StaticConfig", catalog="Id")
public class TbStaticConfig extends BaseEntity<TbStaticConfig> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="KeyOne", nameJava="keyOne", typeDataBase="varchar")
	private String keyOne;
	@YsField(nameDataBase="KeyTwo", nameJava="keyTwo", typeDataBase="varchar")
	private String keyTwo;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="Lev", nameJava="lev", typeDataBase="int")
	private Integer lev;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="NameSub", nameJava="nameSub", typeDataBase="varchar")
	private String nameSub;
	@YsField(nameDataBase="PointMin", nameJava="pointMin", typeDataBase="decimal")
	private BigDecimal pointMin;
	@YsField(nameDataBase="PointMax", nameJava="pointMax", typeDataBase="decimal")
	private BigDecimal pointMax;
	@YsField(nameDataBase="Img", nameJava="img", typeDataBase="varchar")
	private String img;
	@YsField(nameDataBase="Link", nameJava="link", typeDataBase="varchar")
	private String link;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="HypeText", nameJava="hypeText", typeDataBase="text")
	private String hypeText;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbStaticConfig setId(Long id) {
		this.id = id;
		return this;
	}
	public String getKeyOne() {
		return keyOne;
	}
	public TbStaticConfig setKeyOne(String keyOne) {
		this.keyOne = keyOne;
		return this;
	}
	public String getKeyTwo() {
		return keyTwo;
	}
	public TbStaticConfig setKeyTwo(String keyTwo) {
		this.keyTwo = keyTwo;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TbStaticConfig setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TbStaticConfig setType(Integer type) {
		this.type = type;
		return this;
	}
	public Integer getLev() {
		return lev;
	}
	public TbStaticConfig setLev(Integer lev) {
		this.lev = lev;
		return this;
	}
	public String getName() {
		return name;
	}
	public TbStaticConfig setName(String name) {
		this.name = name;
		return this;
	}
	public String getNameSub() {
		return nameSub;
	}
	public TbStaticConfig setNameSub(String nameSub) {
		this.nameSub = nameSub;
		return this;
	}
	public BigDecimal getPointMin() {
		return pointMin;
	}
	public TbStaticConfig setPointMin(BigDecimal pointMin) {
		this.pointMin = pointMin;
		return this;
	}
	public BigDecimal getPointMax() {
		return pointMax;
	}
	public TbStaticConfig setPointMax(BigDecimal pointMax) {
		this.pointMax = pointMax;
		return this;
	}
	public String getImg() {
		return img;
	}
	public TbStaticConfig setImg(String img) {
		this.img = img;
		return this;
	}
	public String getLink() {
		return link;
	}
	public TbStaticConfig setLink(String link) {
		this.link = link;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TbStaticConfig setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TbStaticConfig setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getHypeText() {
		return hypeText;
	}
	public TbStaticConfig setHypeText(String hypeText) {
		this.hypeText = hypeText;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbStaticConfig setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbStaticConfig setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbStaticConfig setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbStaticConfig tbStaticConfig(
		String keyOne,
		String keyTwo,
		String code,
		Integer type,
		Integer lev,
		String name,
		String nameSub,
		BigDecimal pointMin,
		BigDecimal pointMax,
		String img,
		String link,
		BigDecimal amount,
		String remark,
		String hypeText,
		Integer status
			) {
		TbStaticConfig entity = new TbStaticConfig();
		entity.setKeyOne(keyOne);
		entity.setKeyTwo(keyTwo);
		entity.setCode(code);
		entity.setType(type);
		entity.setLev(lev);
		entity.setName(name);
		entity.setNameSub(nameSub);
		entity.setPointMin(pointMin);
		entity.setPointMax(pointMax);
		entity.setImg(img);
		entity.setLink(link);
		entity.setAmount(amount);
		entity.setRemark(remark);
		entity.setHypeText(hypeText);
		entity.setStatus(status);
		return entity;
	}
}